package cn.hiapi.shopkeeper.jpa.activity;

import cn.hiapi.basic.jpa.BasicRepository;
import cn.hiapi.shopkeeper.entity.activity.ActivitySpike;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * @author AdinZ
 * @date 2022/12/13 0:33
 */
public interface ActivitySpikeJpa extends BasicRepository<ActivitySpike, Long> {

    @Modifying
    @Query("delete from ActivitySpike  e where e.aid=?1")
    Integer deleteByAid(long activityId);
}
